package com.yxym.extend_.improve;
//（Student）是Pupil和Graduate的父类
public class Student {
    //共有属性
    public int age;
    public String name;
    private double score;
    //共有的方法
    public void setScore(double score) {

        this.score = score;
    }
    public void showInfo(){
        System.out.println(" 学生名字： " + name + " 正在考试" +
                " 年龄 " + age + " 分数 " + score );
    }
}
